<template>
	<view>
		<block data-type="template" data-is="tempLogin" data-attr="loginModelHidden:loginModelHidden">
		    <view class="loginModel" :hidden="loginModelHidden">
		        <image class="loginImg" src="/static/remao_shop/img/login.png"></image>
		        <view class="loginText">我们需要获得您的授权，以继续操作</view>
		        <button @getuserinfo="updateUserInfo" class="loginBtn" openType="getUserInfo">
		            <image class="loginBtnimg" src="/static/remao_shop/img/weixin.png"></image>微信授权登录</button>
		    </view>
		    <view class="loginBg" :hidden="loginModelHidden"></view>
		</block>
		<view class="tui-mybg-box">
			<image :src="webURL+'/static/images/mall/my/img_bg_3x.png'" class="tui-my-bg" mode="widthFix"></image>
			<view class="tui-header-center">
				<image src="/static/images/mall/mine_def_touxiang_3x.png" class="tui-avatar" @tap="toLogin"></image>
				<view class="tui-info">
					<!-- 昵称 -->
					<view class="tui-nickname">呼噜猪zzZ <image src="/static/images/mall/my/icon_vip_3x.png" class="tui-img-vip"></image>
					</view>
					<!-- 个签 -->
					<view class="tui-explain">这家伙很懒…</view>
				</view>
				<!-- #ifndef MP -->
				<view class="tui-btn-edit">
					<tui-button type="white" :plain="true" shape="circle" width="92rpx" height="40rpx" :size="22" @click="href(3)">编辑</tui-button>
				</view>
				<!-- #endif -->
				<!-- #ifdef MP -->
				<view class="tui-set-box">
					<view class="tui-icon-box tui-icon-setup" @tap="toSetAddr">
						<tui-icon name="setup" color="#fff" :size="26"></tui-icon>
					</view>
				</view>
				<!-- #endif -->
			</view>
			<view class="tui-header-btm">
				<view class="tui-btm-item" @tap="toGoodsConcerns">
					<view class="tui-btm-num">25</view>
					<view class="tui-btm-text">收藏夹</view>
				</view>
				<view class="tui-btm-item" @tap="toShopConcerns">
					<view class="tui-btm-num">22</view>
					<view class="tui-btm-text">店铺关注</view>
				</view>
			</view>
		</view>
		<view class="tui-content-box">
			<view class="tui-box tui-order-box">
				<tui-list-cell :arrow="true" padding="0" :lineLeft="false" @click="toOrderOne">
					<view class="tui-cell-header">
						<view class="tui-cell-title">我的订单</view>
						<view class="tui-cell-sub">查看全部订单</view>
					</view>
				</tui-list-cell>
				<view class="tui-order-list">
					<view class="tui-order-item" @tap="toOrderTwo">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_daifukuan_3x.png" class="tui-order-icon"></image>
							<view class="tui-badge tui-badge-red">1</view>
						</view>
						<view class="tui-order-text">待付款</view>
					</view>
					<view class="tui-order-item" @tap="toOrderThree">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_daifahuo_3x.png" class="tui-order-icon"></image>
							<view class="tui-badge tui-badge-red">1</view>
						</view>
						<view class="tui-order-text">待发货</view>
					</view>
					<view class="tui-order-item" @tap="toOrderFour">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_daishouhuo_3x.png" class="tui-order-icon"></image>
						</view>
						<view class="tui-order-text">待收货</view>
					</view>
					<view class="tui-order-item" @tap="toOrderFive">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_pingjia_3x.png" class="tui-order-icon"></image>
							<view class="tui-badge tui-badge-red" v-if="false">12</view>
						</view>
						<view class="tui-order-text">待评价</view>
					</view>
					<view class="tui-order-item" @tap="toOrderSix">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_tuikuan_3x.png" class="tui-order-icon"></image>
							<view class="tui-badge tui-badge-red">2</view>
						</view>
						<view class="tui-order-text">已完成</view>
					</view>
				</view>
			</view>

			<view class="tui-box tui-assets-box">
				<tui-list-cell padding="0" unlined :hover="false">
					<view class="tui-cell-header">
						<view class="tui-cell-title">我的资产</view>
					</view>
				</tui-list-cell>
				<view class="tui-order-list tui-assets-list">
					<view class="tui-order-item" @tap="toCoupon">
						<view class="tui-assets-num">
							<text>3</text>
							<view class="tui-badge-dot"></view>
						</view>
						<view class="tui-assets-text">优惠券</view>
					</view>
					<view class="tui-order-item" @click="toIntegral">
						<view class="tui-assets-num">
							<text>7</text>
							<view class="tui-badge-dot"></view>
						</view>
						<view class="tui-assets-text">积分</view>
					</view>
					<view class="tui-order-item" @click="toCashGift">
						<view class="tui-assets-num">
							<text>0</text>
						</view>
						<view class="tui-assets-text">礼金</view>
					</view>
				</view>
			</view>

			<view class="tui-box tui-tool-box">
					<view class="tui-cell-header">
						<view class="tui-cell-title">常用工具</view>					
					</view>
				<view class="tui-order-list tui-flex-wrap">
					<view class="tui-tool-item" @click="tourl1">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_gift_3x.png" class="tui-tool-icon"></image>
							<!-- <image src="/static/images/mall/my/icon_tab_3x.png" class="tui-badge-icon"></image> -->
						</view>
						<view class="tui-tool-text">商户入驻</view>
					</view>
					<view class="tui-tool-item" @click="tourl2">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_purse_3x.png" class="tui-tool-icon"></image>
						</view>
						<view class="tui-tool-text">我的店铺</view>
					</view>
					<view class="tui-tool-item" @click="tourl3">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_ticket_3x.png" class="tui-tool-icon"></image>
						</view>
						<view class="tui-tool-text">我的拼团</view>
					</view>
					<view class="tui-tool-item" @click="tourl4">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_kefu_3x.png" class="tui-tool-icon"></image>
						</view>
						<view class="tui-tool-text">积分订单</view>
					</view>
					<view class="tui-tool-item" @click="tourl5">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_fanxian_3x.png" class="tui-tool-icon"></image>
						</view>
						<view class="tui-tool-text">砍价订单</view>
					</view>
					<view class="tui-tool-item" @click="distribution">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_tuan_3x.png" class="tui-tool-icon"></image>
						</view>
						<view class="tui-tool-text">分销中心</view>
					</view>
					<view class="tui-tool-item" @click="tourl7">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_zhihuan_3x.png" class="tui-tool-icon"></image>
						</view>
						<view class="tui-tool-text">我要贷款</view>
					</view>
					<view class="tui-tool-item" @click="tourl8">
						<view class="tui-icon-box">
							<image src="/static/images/mall/my/icon_kaipiao_3x.png" class="tui-tool-icon"></image>
						</view>
						<view class="tui-tool-text">积分转让</view>
					</view>
				</view>
			</view>

			
		</view>
	</view>
</template>

<script>
	import api from "../../../api";
	var app = getApp();
	var iswe7 = wx.getStorageSync("iswe7");
	export default {
		onLoad: function(options) {
			this.getIsOpen();
			wx.getStorage({
			  key: 'userId',
			  success: res => {
			    this.setData({
			      userId: res.data
			    });
			    this.fxListFun();
			    this.Integral();
			    this.userInfo();
			  },
			  fail: () => {
			    this.getuserID(); //this.we7login();
			  }
			});
			let obj = {};
			// #ifdef MP-WEIXIN
			obj = wx.getMenuButtonBoundingClientRect();
			// #endif
			// #ifdef MP-BAIDU
			obj = swan.getMenuButtonBoundingClientRect();
			// #endif
			// #ifdef MP-ALIPAY
			my.hideAddToDesktopMenu();
			// #endif

			uni.getSystemInfo({
				success: (res) => {
					this.width = obj.left || res.windowWidth;
					this.height = obj.top ? (obj.top + obj.height + 8) : (res.statusBarHeight + 44);
					this.top = obj.top ? (obj.top + (obj.height - 32) / 2) : (res.statusBarHeight + 6);
					this.scrollH = res.windowWidth * 0.6
				}
			})
		},
		data() {
			return {
				webURL: "https://www.thorui.cn/wx",
				top: 0, //标题图标距离顶部距离
				opacity: 0,
				scrollTop: 0.5,
				pullUpOn: true,
				fxList:[],
				userId:0,
				loginModelHidden: !0,
				getList: [],
				code: 0,
				integList: '0',
				virtual_currency: '0',
				loginCode: '',
				img: '',
				hiddenShop: 0,
				userName: "",
				userHeadImg: "",
				uid: "",
				name: 'userNickName',
			}
		},
		methods: {
			toLogin(){
				uni.navigateTo({
					url:"../login/login"
				})
			},
			// 订单路由
			toOrderOne() {
			  // console.log(this.data.userId)
			  if (this.userId) {
			    wx.reLaunch({
			      url: '../../packageB/order/order?status=0&userId=' + this.userId
			    });
			  } else {
			    wx.showToast({
			      title: '请先登录',
			      icon: 'none'
			    });
			  }
			},
			
			toOrderTwo() {
			  if (this.userId) {
			    wx.reLaunch({
			      url: '../../packageB/order/order?status=1&userId=' + this.userId
			    });
			  } else {
			    wx.showToast({
			      title: '请先登录',
			      icon: 'none'
			    });
			  }
			},
			
			toOrderThree() {
			  if (this.userId) {
			    wx.reLaunch({
			      url: '../../packageB/order/order?status=2&userId=' + this.userId
			    });
			  } else {
			    wx.showToast({
			      title: '请先登录',
			      icon: 'none'
			    });
			  }
			},
			
			toOrderFour() {
			  if (this.userId) {
			    wx.reLaunch({
			      url: '../../packageB/order/order?status=3&userId=' + this.userId
			    });
			  } else {
			    wx.showToast({
			      title: '请先登录',
			      icon: 'none'
			    });
			  }
			},
			
			toOrderFive() {
			  if (this.userId) {
			    wx.reLaunch({
			      url: '../../packageB/order/order?status=4&userId=' + this.userId
			    });
			  } else {
			    wx.showToast({
			      title: '请先登录',
			      icon: 'none'
			    });
			  }
			},
			toOrderSix() {
			  if (this.userId) {
			    wx.reLaunch({
			      url: '../../packageB/order/order?status=5&userId=' + this.userId
			    });
			  } else {
			    wx.showToast({
			      title: '请先登录',
			      icon: 'none'
			    });
			  }
			},
			toCoupon(){
				uni.navigateTo({
					url:"../../packageB/mycoupon/mycoupon"
				})
			},
			toIntegral(){
				uni.navigateTo({
					url:"../../packageB/integralNumber/number"
				})
			},
			toCashGift(){
				uni.navigateTo({
					url:"../../packageB/integralshop/integralshop"
				})
			},
			toGoodsConcerns(){
				uni.navigateTo({
					url:"../../packageB/collect/collect"
				})
			},
			toShopConcerns(){
				uni.navigateTo({
					url:"../../packageB/collect/collect"
				})
			},
			toSetAddr(){
				uni.navigateTo({
					url:"../../packageB/address/address"
				})
			},
			tourl1(){
				uni.navigateTo({
					url:"../../packageC/ruzhu/ruzhu"
				})
			},
			tourl2(){
				uni.navigateTo({
					url:"../../packageC/mineShop/mineShop"
				})
			},
			tourl3(){
				uni.navigateTo({
					url:"../../packageA/spellgroup/spellgroup"
				})
			},
			tourl4(){
				uni.navigateTo({
					url:"../../packageA/integralOrder/integralOrder"
				})
			},
			tourl5(){
				uni.navigateTo({
					url:"../../packageC/bargainorders/bargainorders"
				})
			},
			tourl7(){
				uni.navigateTo({
					url:"../../packageC/loans/loans"
				})
			},
			tourl8(){
				uni.navigateTo({
					url:"../../packageC/integralTransfer/integralTransfer"
				})
			},
			//信息
			userInfo: function () {
			  wx.getStorage({
			    key: 'userName',
			    success: username => {
			      this.setData({
			        userName: username.data
			      });
			    }
			  });
			  wx.getStorage({
			    key: 'userHeadImg',
			    success: userImg => {
			      this.setData({
			        userHeadImg: userImg.data
			      });
			    }
			  });
			},
			getIsOpen: function () {
			  app.globalData.request({
			    url: api.gzSea.open,
			    data: {},
			    header: {
			      'content-type': 'application/x-www-form-urlencoded' // 默认值
			
			    },
			    method: 'POST',
			    success: res => {
			      console.log(res);
			      this.setData({
			        hiddenShop: res.data
			      });
			      console.log(this.hiddenShop);
			    }
			  });
			},
			getUser: function (e) {
			  console.log('1');
			  var that = this;
			  wx.login({
			    success: login => {
			      console.log(login);
			      this.setData({
			        loginCode: login.code
			      }); //先获取用户信息
			
			      wx.getUserInfo({
			        success: info => {
			          console.info(info);
			          console.log(this.loginCode);
			          this.setData({
			            img: info.userInfo.avatarUrl,
			            name: info.userInfo.nickName
			          });
			          console.log(this.name, this.img); //调用后台接口，获取userID
			
			          app.globalData.request({
			            url: api.default.login,
			            //仅为示例，并非真实的接口地址
			            method: 'POST',
			            data: {
			              code: this.loginCode,
			              nickname: this.name,
			              avatarUrl: this.img // iv: res1.iv,
			              // data: res1.rawData
			            },
			            header: {
			              'content-type': 'application/x-www-form-urlencoded' // 默认值
			
			            },
			
			            success(res2) {
			              console.log(res2);
			              wx.setStorage({
			                key: 'openid',
			                data: res2.data.openid
			              });
			              wx.setStorage({
			                key: 'userId',
			                data: res2.data.id,
			                success: function (res3) {
			                  console.log(res3, 'userID');
			                },
			                fail: function (res3) {},
			                complete: function (res3) {}
			              });
			              wx.setStorage({
			                key: 'userName',
			                data: res2.data.nickname
			              });
			              wx.setStorage({
			                key: 'userHeadImg',
			                data: res2.data.avatar
			              });
			              wx.getStorage({
			                key: 'userId',
			                success: res => {
			                  that.setData({
			                    userId: res.data
			                  });
			                  that.fxListFun();
			                  that.Integral();
			                  that.userInfo();
			                },
			                fail: () => {
			                  that.getuserID(); //this.we7login();
			                }
			              });
			            }
			
			          });
			        }
			      });
			    }
			  });
			},
			
			// 微擎登录
			we7login(e) {
			  var t = this,
			      a = wx.getStorageSync("userInfo");
			  a && 0 != a.memberInfo.uid && "" != a.memberInfo ? t.setData({
			    userId: a.memberInfo.uid
			  }) : wx.getSetting({
			    success: function (e) {
			      false == e.authSetting["scope.userInfo"] ? wx.showModal({
			        title: "提示",
			        content: "允许小程序获取您的用户信息后才可查看线索哦",
			        showCancel: !1,
			        success: function (e) {
			          e.confirm && wx.openSetting({
			            success: function (e) {
			              1 == e.authSetting["scope.userInfo"] && (t.setData({
			                loginModelHidden: !1
			              }), wx.removeStorageSync("userInfo"));
			            }
			          });
			        }
			      }) : (wx.removeStorageSync("userInfo"), t.setData({
			        loginModelHidden: !1
			      }));
			    }
			  });
			},
			// 获取用户信息
			updateUserInfo: function (e) {
			  var t = this;
			  app.globalData.util.getUserInfo(function (e) {
			    e = wx.getStorageSync("userInfo");
			    let userId = wx.getStorageSync("userId");
			    var that = this;
			    t.setData({
			      userId: userId,
			      loginModelHidden: !0
			    });
			    console.log('111',this.loginModelHidden);
			    t.fxListFun();
			    t.Integral();
			    t.userInfo();
			  }, e.detail);
			},
			getuserID() {
			  // console.log('我被调用了')
			  wx.getStorage({
			    key: 'userId',
			    success: res => {
			      this.setData({
			        uid: res.data
			      });
			      this.trolley();
			    },
			    fail: res => {
			      console.log(res);
			      wx.showToast({
			        title: '请先登录',
			        icon: 'none'
			      });
						setTimeout(function() {
			      	if (iswe7 == 1) {
			      		wx.navigateTo({
			      			url: '../../packageA/login/login'
			      		})
			      	} else {
			      		wx.navigateTo({
			      			url: '../../packageA/logins/login',
			      		})
			      	}
			      }, 2000)
			    }
			  });
			},
			//获取用户信息（积分）
			Integral: function () {
			  // console.log(this.data.userId)
			  app.globalData.request({
			    url: api.default.user_info,
			    header: {
			      'content-type': 'application/x-www-form-urlencoded'
			    },
			    data: {
			      uid: this.userId
			    },
			    method: 'POST',
			    success: res => {
			      // console.log(res)
			      this.setData({
			        integList: res.user_info.integral,
			        virtual_currency: res.user_info.virtual_currency
			      });
			    }
			  });
			},
			//判断是否是分销商，跳转相应页面
			fxListFun: function () {
			  app.globalData.request({
			    url: api.default.distribution_sales,
			    header: {
			      'content-type': 'application/x-www-form-urlencoded'
			    },
			    data: {
			      uid: this.userId
			    },
			    method: 'POST',
			    success: res => {
			      console.log(res);
			      this.setData({
			        fxList: res
			      });
			    }
			  });
			},
			distribution(){
				if (this.fxList.status != 1) {
				  wx.showToast({
				    title: this.fxList.msg,
				    icon: 'none'
				  });
				  setTimeout(function () {
				    wx.navigateTo({
				      url: '../../packageB/distribution/distribution'
				    });
				  }, 1000);
				} else {
				  wx.navigateTo({
				    url: '../../packageB/DistributionCenter/DistributionCenter?kong=' + !1
				  });
				}
			},
			
		},
		onPullDownRefresh() {
			this.Integral();
			this.userInfo();
			wx.stopPullDownRefresh();
			setTimeout(() => {
				uni.stopPullDownRefresh()
			}, 200)
		},
		
	}
</script>

<style>
	.tui-header-box {
		width: 100%;
		padding: 0 30rpx 0 20rpx;
		box-sizing: border-box;
		position: fixed;
		top: 0;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		height: 32px;
		transform: translateZ(0);
		z-index: 9999;
	}

	/* #ifndef MP */
	.tui-header-icon {
		min-width: 120rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	/* #endif */
	/* #ifdef MP */
	.tui-set-box {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	/* #endif */
	.tui-icon-box {
		position: relative;
	}

	.tui-icon-setup {
		margin-left: 8rpx;
	}

	.tui-badge {
		position: absolute;
		font-size: 24rpx;
		height: 32rpx;
		min-width: 20rpx;
		padding: 0 6rpx;
		border-radius: 40rpx;
		right: 10rpx;
		top: -5rpx;
		transform: scale(0.8) translateX(60%);
		transform-origin: center center;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 10;
	}

	.tui-badge-red {
		background: #F74D54;
		color: #fff;
	}

	.tui-badge-white {
		background: #fff;
		color: #F74D54;
	}

	.tui-badge-dot {
		position: absolute;
		height: 12rpx;
		width: 12rpx;
		border-radius: 50%;
		right: -12rpx;
		top: 0;
		background: #F74D54;
	}

	.tui-mybg-box {
		width: 100%;
		height: 464rpx;
		position: relative;
	}

	.tui-my-bg {
		width: 100%;
		height: 464rpx;
		display: block;
	}

	.tui-header-center {
		position: absolute;
		width: 100%;
		height: 128rpx;
		left: 0;
		top: 120rpx;
		padding: 0 30rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
	}

	.tui-avatar {
		flex-shrink: 0;
		width: 128rpx;
		height: 128rpx;
		display: block;
	}

	.tui-info {
		width: 60%;
		padding-left: 30rpx;

	}

	.tui-nickname {
		font-size: 30rpx;
		font-weight: 500;
		color: #fff;
		display: flex;
		align-items: center;
	}

	.tui-img-vip {
		width: 56rpx;
		height: 24rpx;
		margin-left: 18rpx;
	}

	.tui-explain {
		width: 80%;
		font-size: 24rpx;
		font-weight: 400;
		color: #fff;
		opacity: 0.75;
		padding-top: 8rpx;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.tui-btn-edit {
		flex-shrink: 0;
		padding-right: 22rpx;
	}

	.tui-header-btm {
		width: 100%;
		padding: 0 30rpx;
		box-sizing: border-box;
		position: absolute;
		left: 0;
		top: 280rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		color: #fff;
	}

	.tui-btm-item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.tui-btm-num {
		font-size: 32rpx;
		font-weight: 600;
		position: relative;
	}

	.tui-btm-text {
		font-size: 24rpx;
		opacity: 0.85;
		padding-top: 4rpx;
	}

	.tui-content-box {
		width: 100%;
		padding: 0 30rpx;
		box-sizing: border-box;
		position: relative;
		top: -72rpx;
		z-index: 10;
	}

	.tui-box {
		width: 100%;
		background: #fff;
		box-shadow: 0 3rpx 20rpx rgba(183, 183, 183, 0.1);
		border-radius: 10rpx;
		overflow: hidden;
	}

	.tui-order-box {
		height: 208rpx;
	}

	.tui-cell-header {
		width: 100%;
		height: 74rpx;
		padding: 0 26rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.tui-cell-title {
		font-size: 30rpx;
		line-height: 30rpx;
		font-weight: 600;
		color: #333;
	}

	.tui-cell-sub {
		font-size: 26rpx;
		font-weight: 400;
		color: #999;
		padding-right: 28rpx;
	}

	.tui-order-list {
		width: 100%;
		height: 134rpx;
		padding: 0 30rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;

	}

	.tui-order-item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.tui-order-text,
	.tui-tool-text {
		font-size: 26rpx;
		font-weight: 400;
		color: #666;
		padding-top: 4rpx;
	}

	.tui-tool-text {
		font-size: 24rpx;
	}

	.tui-order-icon {
		width: 56rpx;
		height: 56rpx;
		display: block;
	}

	.tui-assets-box {
		height: 178rpx;
		margin-top: 20rpx;
	}

	.tui-assets-list {
		height: 84rpx;
	}

	.tui-assets-num {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
		position: relative;
	}

	.tui-assets-text {
		font-size: 24rpx;
		font-weight: 400;
		color: #666;
		padding-top: 6rpx;
	}

	.tui-tool-box {
		margin-top: 20rpx;
	}

	.tui-flex-wrap {
		flex-wrap: wrap;
		height: auto;
		padding-bottom: 30rpx;
	}

	.tui-tool-item {
		width: 25%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		padding-top: 30rpx;
	}

	.tui-tool-icon {
		width: 64rpx;
		height: 64rpx;
		display: block;
	}

	.tui-badge-icon {
		width: 66rpx;
		height: 30rpx;
		position: absolute;
		right: 0;
		transform: translateX(88%);
		top: -15rpx;
	}

	/*为你推荐*/
	.tui-product-list {
		display: flex;
		justify-content: space-between;
		flex-direction: row;
		flex-wrap: wrap;
		box-sizing: border-box;
	}

	.tui-product-container {
		flex: 1;
		margin-right: 2%;
	}

	.tui-product-container:last-child {
		margin-right: 0;
	}

	.tui-pro-item {
		width: 100%;
		margin-bottom: 4%;
		background: #fff;
		box-sizing: border-box;
		border-radius: 12rpx;
		overflow: hidden;
	}

	.tui-pro-img {
		width: 100%;
		display: block;
	}

	.tui-pro-content {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		box-sizing: border-box;
		padding: 20rpx;
	}

	.tui-pro-tit {
		color: #2e2e2e;
		font-size: 26rpx;
		word-break: break-all;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.tui-pro-price {
		padding-top: 18rpx;
	}

	.tui-sale-price {
		font-size: 34rpx;
		font-weight: 500;
		color: #e41f19;
	}

	.tui-factory-price {
		font-size: 24rpx;
		color: #a0a0a0;
		text-decoration: line-through;
		padding-left: 12rpx;
	}

	.tui-pro-pay {
		padding-top: 10rpx;
		font-size: 24rpx;
		color: #656565;
	}

	.tui-btn-back {
		width: 88rpx;
		height: 88rpx;
		font-size: 26rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		background-color: rgba(0, 0, 0, .5);
		color: #fff;
		position: fixed;
		bottom: 60rpx;
		right: 30rpx;
		z-index: 9999;
	}
</style>
